// 中文
/**
 * 按照路由名称配置页面信息
 * login是登录页路由名称
 * 剩下的部分字段按业务方便进行配置
 */
let a = [1, 2, 3];
import { dataLakeTableHeader } from "./zh-cn/data-lake";
import { umTableHeader, userOperation } from "./zh-cn/user-management";
import { breadcrumb } from "./zh-cn/breadcrumb";
const lang = {
  lang: "中",
  login: {
    hedaer: {
      applyBtn: "申请使用",
      loginBtn: "登录",
    },
    login: {
      title: "欢迎登录",
      loginType: {
        account: "账号登录",
        sms: "短信登录",
      },
      autoLogin: "自动登录",
      forgetPwd: "忘记密码",
    },
    register: {
      nextStep: "下一步",
      requestUse: {
        title: "申请使用",
        descrption: {
          1: "上纽大城市实验室「城市数据湖」尚在内测阶段，",
          2: "欢迎大家申请使用，共建共享数据资源。",
          3: "请您如实填写资料信息并提交申请，我们将于 5 个工作日内完成答复。",
        },
        verification: {
          before: "拖动滑块验证",
          after: "验证成功",
          message: "验证未通过",
        },
      },
      loginInfo: {
        title: "注册信息",
        password: {
          placeholder: "设置密码",
          tips: "6-20字符，字母/数字/符号请至少包含2种",
        },
      },
      baseInfo: {
        title: "基本信息",
      },
      requestSuccess: {
        title: "申请成功",
        tips1: "我们将于 5 个工作日内处理并答复,",
        tips2: "处理结果以 [短信+邮件] 通知，请您耐心等待。",
      },
    },
  },
  layout: {
    dataUpload: "数据上传",
    headerNav: {
      1: "首页",
      2: "城市数据湖",
      3: "数据分析",
      4: "数据沙箱",
      5: "个人数据",
      6: "运营指数",
      7: "系统管理",
    },
    userCenter: "个人中心",
    signOut: "退出登录",
    now: "当前共",
    unit: "万条",
    requestDownload: "申请下载",
    generateInterface: "生成接口",
  },
  verCode: {
    getCode: "获取验证码",
    resend: "重新发送",
  },
  placeholder: {
    userName: "中文/字母/数字,最多10个字符",
    email: "邮箱",
    mobile: "手机号",
    password: "密码",
    code: "6位数字验证码",
    confirmPassword: "请再次输入密码",
    unitType: "所在单位",
    unitName: "请输入全称",
    profession: "职位",
    navSearch: "输入",
    city: "请选择城市",
    statisticalTime: "统计时间",
    index: "指标",
  },
  label: {
    userName: "用户名",
    email: "邮箱",
    mobile: "手机",
    code: "验证码",
    password: "密码",
    confirmPassword: "确认密码",
    unitType: "所在单位类型",
    unitName: "单位名称",
    profession: "职位/身份",
  },
  tableHeader: {
    "/data-lake": encodeURIComponent(JSON.stringify(dataLakeTableHeader)),
    "/user-management": encodeURIComponent(JSON.stringify(umTableHeader)),
  },
  breadcrumb: breadcrumb,
  validate: {
    mobile: {
      empty: "请输入手机号",
      error: "请输入正确的手机号",
    },
    userName: {
      empty: "请输入用户名",
      error: "用户名格式错误",
    },
    password: {
      empty: "请输入密码",
      error: "密码格式错误",
    },
    confirmPassword: {
      empty: "请再次输入密码",
      error: "两次密码输入不一致",
    },
    code: {
      empty: "请输入6位数字格式验证码",
      error: "验证码格式错误",
    },
    email: {
      error: "邮箱格式错误",
    },
    unitType: {
      empty: "请选择单位",
    },
    unitName: {
      empty: "请输入单位名称",
    },
    profession: {
      empty: "请选择职位",
    },
    submit: {
      error: "信息有误",
    },
  },
  btnName: {
    sure: "确定",
    seniorSearch: "高级搜索",
    field: "栏位",
    add: "新增",
    del: "删除",
  },
  responseMsg: {
    "9101": "用户名或密码不正确！",
    "0": "成功！",
    "9109": "该用户已存在！",
    "9104": "登录状态已过期，请重新登录",
    codeSuccess: "验证码发送成功",
  },
  status: {
    name: "状态",
    pendingApproval: "待审批",
    rejected: "已拒绝",
  },
  operation: {
    name: "操作",
    adopt: "通过",
    reject: "拒绝",
    edit: "编辑",
    del: "删除",
    cancel: "取消",
  },
  dilogTitle: {
    del: "确定删除此用户？",
    add: "新增",
    edit: "编辑",
  },
  router: {
    "/user-management": {
      userOperation: encodeURIComponent(JSON.stringify(userOperation)),
    },
  },
};

export default lang;
